<?php

namespace App\Http\Controllers;

use App\Models\GoodsSku;
use App\Models\Sharp;
use Carbon\Carbon;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
    
    public function test()
    {
//    	$arr1 = [1, 2];
//
//    	$temp = [3];
//    	foreach ($arr1 as $item) {
//    	    array_push($temp, $item);
//	    }
//    	dd($temp);
//		$a='a';
//		$b='b';
//		echo '交换前 $a:'.$a.',$b:'.$b.'<br />';
//		$a=$a^$b;
//		$b=$b^$a;
//		$a=$a^$b;
//		echo '交换后$a:'.$a.',$b:'.$b.'<br />';
//
//		echo '-----------------------<br/>';
    	//$res = Sharp::checkThisGoodsIsInSharp(1, 27);
    	//dd($res);
//	    $time = Carbon::now();
//	    $time->setHours(2);
//	    if ($time->setTime(15, 0, 0)->timestamp > time() || $time->setTime(16, 0, 0)->timestamp < time()) {
//	        dd('未到时间');
//	    }
//	    dd('到达预定时间');
//	    dd($time->setTime(2, 0,0));
    }
}
